package com.ruoyi.hippocampus.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hippocampus.mapper.StoreOrdersMapper;
import com.ruoyi.hippocampus.domain.StoreOrders;
import com.ruoyi.hippocampus.service.IStoreOrdersService;

/**
 * 订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-12
 */
@Service
public class StoreOrdersServiceImpl implements IStoreOrdersService 
{
    @Autowired
    private StoreOrdersMapper storeOrdersMapper;

    /**
     * 查询订单
     * 
     * @param id 订单主键
     * @return 订单
     */
    @Override
    public StoreOrders selectStoreOrdersById(Long id)
    {
        return storeOrdersMapper.selectStoreOrdersById(id);
    }

    /**
     * 查询订单列表
     * 
     * @param storeOrders 订单
     * @return 订单
     */
    @Override
    public List<StoreOrders> selectStoreOrdersList(StoreOrders storeOrders)
    {
        return storeOrdersMapper.selectStoreOrdersList(storeOrders);
    }

    /**
     * 新增订单
     * 
     * @param storeOrders 订单
     * @return 结果
     */
    @Override
    public int insertStoreOrders(StoreOrders storeOrders)
    {
        return storeOrdersMapper.insertStoreOrders(storeOrders);
    }

    /**
     * 修改订单
     * 
     * @param storeOrders 订单
     * @return 结果
     */
    @Override
    public int updateStoreOrders(StoreOrders storeOrders)
    {
        return storeOrdersMapper.updateStoreOrders(storeOrders);
    }

    /**
     * 批量删除订单
     * 
     * @param ids 需要删除的订单主键
     * @return 结果
     */
    @Override
    public int deleteStoreOrdersByIds(Long[] ids)
    {
        return storeOrdersMapper.deleteStoreOrdersByIds(ids);
    }

    /**
     * 删除订单信息
     * 
     * @param id 订单主键
     * @return 结果
     */
    @Override
    public int deleteStoreOrdersById(Long id)
    {
        return storeOrdersMapper.deleteStoreOrdersById(id);
    }
}
